package com.zhongyu.comm.api;

import com.zhongyu.comm.pojo.User;
import com.zhongyu.comm.vo.TokenVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserApi {

    @RequestMapping("/userApi/findOne")
    User findOne(@RequestParam("phone") String phone,@RequestParam("password") String password);

    @RequestMapping("/userApi/getToken")
    TokenVo getToken(@RequestBody User user);

    @RequestMapping("/userApi/getUser")
    User getUser(@RequestParam("token")String token);

}
